<?php
// No direct access
defined('_JEXEC') or die('Restricted access');

//JHtml::addIncludePath(JPATH_COMPONENT.DS.'helpers'.DS.'html');
require_once JPATH_COMPONENT.'/helpers/html/ajaxwhois.php';

JHtmlAjaxWhois::tipStyle();
JHTML::_('behavior.tooltip');
JHTML::_('behavior.formvalidation');
?>
<script type="text/javascript">
<!--
	function submitbutton(task) {
		if (task == 'link.cancel' || document.formvalidator.isValid(document.id('link-form'))) {
			submitform(task);
		} else {
			alert('<?php echo $this->escape(JText::_('JGLOBAL_VALIDATION_FORM_FAILED'));?>');
		}
	}
// -->
</script>

<form action="<?php echo JRoute::_('index.php?option=com_ajaxwhois'); ?>" method="post" name="adminForm" id="link-form" class="form-validate">
    <div class="width-80 fltlft">
        <fieldset class="adminform">
            <legend><?php echo empty($this->item->id) ? JText::_('COM_AJAXWHOIS_NEW_LINK') : JText::sprintf('COM_AJAXWHOIS_EDIT_LINK', $this->item->id); ?></legend>
			<ul class="adminformlist">
				<li><?php echo $this->form->getLabel('title'); ?>
				<?php echo $this->form->getInput('title'); ?></li>

				<li><?php echo $this->form->getLabel('url'); ?>
				<?php echo $this->form->getInput('url'); ?></li>

				<li><?php echo $this->form->getLabel('which'); ?>
				<?php echo $this->form->getInput('which'); ?></li>

				<li><?php echo $this->form->getLabel('target'); ?>
				<?php echo $this->form->getInput('target'); ?></li>
			</ul>
        </fieldset>
    </div>
    <input type="hidden" name="task" value="" />
    <?php echo JHtml::_('form.token'); ?>
</form>
